package com.boot.unity.api.wx.controller;

import com.boot.unity.api.wx.service.WxPayInfoService;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 缴费信息
 */
@RestController
@RequestMapping("/wx/payInfo")
@Validated
public class WxPayInfoCntroller {
    private final Log logger = LogFactory.getLog(WxPayInfoCntroller.class);


    @Autowired
    private WxPayInfoService wxPayInfoService;

    /**
     * 获取缴费信息
     * @return
     */
    @GetMapping("info")
    public Object info(String uid,String key) {
       return wxPayInfoService.info(uid,key);
    }


}
